﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="RankQueryPage.aspx.cs"
    Inherits="SEO_Server.Pages.RankQueryPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server" AutoSizePanelID="pelMain" />
    <ext:Panel ID="pelMain" runat="server" EnableBackgroundColor="true" BodyPadding="3px"
        EnableLargeHeader="true" Title="Panel" ShowBorder="false" ShowHeader="false"
        Layout="Anchor">
        <Items>
            <ext:Form ID="Form2" ShowBorder="False" LabelWidth="60px" BodyPadding="5px" AnchorValue="100%"
                EnableBackgroundColor="true" ShowHeader="False" runat="server">
                <Rows>
                    <ext:FormRow ID="FormRow1" runat="server">
                        <Items>
                            <ext:DropDownList ID="ddlstSiteURL" runat="server" ShowLabel="false">
                                <ext:ListItem Text="請選擇站點URL" Value="-1" EnableSelect="false" />
                            </ext:DropDownList>
                            <ext:TextBox ID="tbxkeyword" runat="server" EmptyText="請輸入關鍵字" ShowLabel="false">
                            </ext:TextBox>
                            <ext:Button ID="btnSearch" runat="server" Text="查詢" Icon="Magnifier" OnClick="btnSearch_Click">
                            </ext:Button>
                        </Items>
                    </ext:FormRow>
                    <ext:FormRow ID="FormRow2" runat="server">
                        <Items>
                            <ext:DatePicker ID="dpkStartDate" runat="server" Label="開始年月" DateFormatString="yyyy-MM">
                            </ext:DatePicker>
                            <ext:DatePicker ID="dpkEndDate" runat="server" Label="結束年月" DateFormatString="yyyy-MM">
                            </ext:DatePicker>
                            <ext:Label ID="Label1" runat="server">
                            </ext:Label>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
            <ext:Panel ID="pelGrid" ShowBorder="True" ShowHeader="false" AnchorValue="100% -60"
                Layout="Fit" runat="server">
                <Toolbars>
                    <ext:Toolbar ID="tbrRank" runat="server">
                        <Items>
                            <ext:Button ID="btnSetKeyword" runat="server" Icon="Cog" Text="設置統計關鍵字" OnClick="btnSetKeyword_Click">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Items>
                    <ext:Grid ID="gridRank" Title="Grid1" ShowBorder="false" ShowHeader="false" runat="server"
                        EnableRowNumber="True" AutoScroll="true" OnRowDataBound="gridRank_RowDataBound">
                        <Columns>
                            <ext:BoundField DataField="Keyword" Width="100px" HeaderText="關鍵字" />
                            <ext:BoundField DataField="Yahoo" Width="150px" HeaderText="Yahoo排名前五位天數" />
                            <ext:BoundField DataField="Google" Width="150px" HeaderText="Google排名前五位天數" />
                        </Columns>
                    </ext:Grid>
                </Items>
            </ext:Panel>
        </Items>
    </ext:Panel>
    <ext:Window ID="wndSettingKeyword" Title="設置統計關鍵字" Popup="false" EnableIFrame="true"
        IFrameUrl="about:blank" Target="Parent" runat="server" IsModal="true" EnableConfirmOnClose="true"
        Height="600px" Width="800px">
    </ext:Window>
    </form>
</body>
</html>
